function HandleSignIn(gui, user, date, options, data) {
  this._gui = gui;
  this._user = user;
  this._date = date;
  this._options = options;
  this._data = data;

  this._createElements();
};

HandleSignIn.prototype._createElements = function() {
  var func = function(result, params) { if (result) {
                                          if (result.type == Constant.USER_TYPE_ADMINISTER) {
                                            location.href = '?t=padminspreadsheet';
                                          } else if (result.type == Constant.USER_TYPE_DESIGNER) {
                                            location.href = '?t=pdesignerall'; 
                                          } else if (result.type == Constant.USER_TYPE_ASSISTANT) {
                                            location.href = '?t=passistantall'; 
                                          } else if (result.type == Constant.USER_TYPE_MAILER) {
                                            location.href = '?t=pmaileraddparcel';
                                          }
                                        }
                                      };

  var _self = this;
  this._gui.account.onkeypress = function(e) { var code = DOMUtils.getEventCode(e);
                                                if (code == 13) {
                                                  new RequestUtils()._custom('login', { account: _self._gui.account.value, password: _self._gui.password.value }, func, { pos: DOMUtils.findPos(this) }); 
                                                }
                                              };
  this._gui.password.onkeypress = function(e) { var code = DOMUtils.getEventCode(e);
                                                if (code == 13) {
                                                  new RequestUtils()._custom('login', { account: _self._gui.account.value, password: _self._gui.password.value }, func, { pos: DOMUtils.findPos(this) }); 
                                                }
                                              };
  this._gui.login.onclick = function () { new RequestUtils()._custom('login', { account: _self._gui.account.value, password: _self._gui.password.value }, func, { pos: DOMUtils.findPos(this) }); };
};